* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: fadeIn 2s ease-in-out;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #f8f8f8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

p {
    font-size: 1.5rem;
    color: #f0f0f0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 控制面板样式 */
.controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    width: 250px;
}

.controls:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.frequency-control, .text-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.text-control {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.text-control h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.input-group label {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.input-group input[type="text"] {
    padding: 8px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.input-group input[type="text"]:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.input-group select {
    padding: 8px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    cursor: pointer;
}

.input-group input[type="color"] {
    width: 100%;
    height: 30px;
    border: none;
    border-radius: 5px;
    background: none;
    cursor: pointer;
}

.frequency-control label, .input-group label {
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.frequency-control input[type="range"], .input-group input[type="range"] {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.frequency-control input[type="range"]::-webkit-slider-thumb, .input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.frequency-control span, .input-group span {
    font-size: 12px;
    color: #fff;
    min-width: 40px;
    text-align: center;
}

#show-text-btn {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#show-text-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#show-text-btn:active {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .controls {
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .frequency-control input[type="range"] {
        width: 100px;
    }
}
